package com.ninja.sqlSession;

import com.ninja.pojo.config.Configuration;

public class DefalutSqlSessionFactory implements SqlSessionFactory{

    private Configuration configuration;

    public DefalutSqlSessionFactory(Configuration configuration) {
        this.configuration = configuration;
    }

    @Override
    public SqlSession openSession() {
        return new DefalutSqlSession(configuration);
    }
}
